export default (packageName) => {
    packageName = (packageName + "/").replace("//", "");
    fetch(`https://www.unpkg.com/${packageName}?meta`)
        .then((res) => res.json())
        .then((res) => {
            console.group(packageName);

            console.table(
                res.files.map((i) => ({
                    path: i.path,
                    size: i.size === undefined ? "dir" : i.size,
                }))
            );
            console.groupEnd(packageName);
        });
};
